package com.nursinghome;

import com.nursinghome.admin.mapper.IndexMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class IndexTest01 {
    @Autowired
    private IndexMapper indexMapper;

    @Test
    public void test01(){
        indexMapper.selectMedicalAndElderly()
                .forEach(System.out::println);
    }
    @Test
    public void test02(){
        Integer i01=59;
        int i02=59;
        Integer i03=Integer.valueOf(59);
        Integer i04=new Integer(59);
        System.out.println(i01 == i02);
        System.out.println(i01 == i03);
        System.out.println(i03 == i04);
        System.out.println(i02 == i04);
    }
}
